﻿
/* 
 本类由PWMIS 实体类生成工具(Ver 4.1)自动生成
 http://www.pwmis.com/sqlmap
 使用前请先在项目工程中引用 PWMIS.Core.dll
 2012/3/30 17:59:35
*/

using System;
using PWMIS.Common;
using PWMIS.DataMap.Entity;

namespace PrjCmd.Entity 
{
  [Serializable()]
  public  class Categories : EntityBase
  {
    public Categories()
    {
            TableName = "Categories";
            EntityMap=EntityMapType.Table;
            //IdentityName = "标识字段名";
    IdentityName="CategoryID";

            //PrimaryKeys.Add("主键字段名");
    PrimaryKeys.Add("CategoryID");

            
    }


      protected override void SetFieldNames()
      {
           PropertyNames = new string[] { "CategoryID","CategoryName" };
      }



      /// <summary>
      /// 
      /// </summary>
      public System.Int32 CategoryID
      {
          get{return getProperty<System.Int32>("CategoryID");}
          set{setProperty("CategoryID",value );}
      }

      /// <summary>
      /// 
      /// </summary>
      public System.String CategoryName
      {
          get{return getProperty<System.String>("CategoryName");}
          set{setProperty("CategoryName",value ,20);}
      }


  }
}
